<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVCoreWebView2ScriptException: Class TCoreWebView2ScriptException</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="TCoreWebView2ScriptException"></span><h1 class="cio">Class TCoreWebView2ScriptException</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Fields">Fields</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section"><a class="section" href="#PasDoc-Properties">Properties</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVCoreWebView2ScriptException.html">uWVCoreWebView2ScriptException</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCoreWebView2ScriptException = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
 This interface represents a JavaScript exception. If the CoreWebView2.ExecuteScriptWithResult result has Succeeded as false, you can use the result's Exception property to get the script exception. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptexception">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2scriptexception</a>&quot;&gt;See the ICoreWebView2ScriptException article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCoreWebView2ScriptException</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Fields"></span><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#FBaseIntf">FBaseIntf</a></strong>: <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>;</code></td>
</tr>
</table>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetInitialized">GetInitialized</a></strong>: boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetLineNumber">GetLineNumber</a></strong>: cardinal;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetColumnNumber">GetColumnNumber</a></strong>: cardinal;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetName">GetName</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetMessage">GetMessage</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#Create-ICoreWebView2ScriptException-">Create</a></strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>); reintroduce;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#Destroy">Destroy</a></strong>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#ToJson">ToJson</a></strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
</table>
<span id="PasDoc-Properties"></span><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#Initialized">Initialized</a></strong>           : boolean                           read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#BaseIntf">BaseIntf</a></strong>              : <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>      read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#LineNumber">LineNumber</a></strong>            : cardinal                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetLineNumber">GetLineNumber</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#ColumnNumber">ColumnNumber</a></strong>          : cardinal                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetColumnNumber">GetColumnNumber</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#Name">Name</a></strong>                  : <a href="uWVTypes.html#wvstring">wvstring</a>                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetName">GetName</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <strong><a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#Message_">Message_</a></strong>              : <a href="uWVTypes.html#wvstring">wvstring</a>                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetMessage">GetMessage</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="FBaseIntf"></span><code><strong>FBaseIntf</strong>: <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetInitialized"></span><code>function <strong>GetInitialized</strong>: boolean;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetLineNumber"></span><code>function <strong>GetLineNumber</strong>: cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetColumnNumber"></span><code>function <strong>GetColumnNumber</strong>: cardinal;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetName"></span><code>function <strong>GetName</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><span id="GetMessage"></span><code>function <strong>GetMessage</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Create-ICoreWebView2ScriptException-"></span><code>constructor <strong>Create</strong>(const aBaseIntf : <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>); reintroduce;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Destroy"></span><code>destructor <strong>Destroy</strong>; override;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ToJson"></span><code>function <strong>ToJson</strong>: <a href="uWVTypes.html#wvstring">wvstring</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 This will return all details of the exception as a JSON string. In the case that script has thrown a non-Error object such as `throw &quot;abc&quot;;` or any other non-Error object, you can get object specific properties. </p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Initialized"></span><code>property <strong>Initialized</strong>           : boolean                           read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetInitialized">GetInitialized</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns true when the interface implemented by this class is fully initialized. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="BaseIntf"></span><code>property <strong>BaseIntf</strong>              : <a href="uWVTypeLibrary.ICoreWebView2ScriptException.html">ICoreWebView2ScriptException</a>      read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#FBaseIntf">FBaseIntf</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Returns the interface implemented by this class. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="LineNumber"></span><code>property <strong>LineNumber</strong>            : cardinal                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetLineNumber">GetLineNumber</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The line number of the source where the exception occurred. In the JSON it is `exceptionDetail.lineNumber`. Note that this position starts at 0. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="ColumnNumber"></span><code>property <strong>ColumnNumber</strong>          : cardinal                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetColumnNumber">GetColumnNumber</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The column number of the source where the exception occurred. In the JSON it is `exceptionDetail.columnNumber`. Note that this position starts at 0. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Name"></span><code>property <strong>Name</strong>                  : <a href="uWVTypes.html#wvstring">wvstring</a>                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetName">GetName</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The Name is the exception's class name. In the JSON it is `exceptionDetail.exception.className`. This is the empty string if the exception doesn't have a class name. This can happen if the script throws a non-Error object such as `throw &quot;abc&quot;;` </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Message_"></span><code>property <strong>Message_</strong>              : <a href="uWVTypes.html#wvstring">wvstring</a>                          read <a href="uWVCoreWebView2ScriptException.TCoreWebView2ScriptException.html#GetMessage">GetMessage</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The Message is the exception's message and potentially stack. In the JSON it is exceptionDetail.exception.description. This is the empty string if the exception doesn't have a description. This can happen if the script throws a non-Error object such as throw &quot;abc&quot;;. </p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
